<%@ taglib prefix="s" uri="/struts-tags" %>

<jsp:include page="logincheck.jsp"/>


<html>
<head>
<title>YAS: ASDFs</title>

<style type="text/css">
	@import url('color.css');
	@import url('tabs.css');
	@import url('style.css');
body 
{
font-family: arial;
font-size: 12px;
background-image:
	url('background.png');
	background-repeat: no-repeat;
}
</style>

</head>

<body>

<!--
<div class="header">ASDF</div>
-->

<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="homepage.action" id="current">Home</a></li>
<li><a href="asdf.action">ASDF</a></li>
<s:if test="#session.login == 'true'">
    <li><a href="friends.action">My Friends</a></li>
    <li><a href="user.action">My Page</a></li>
    <li><a href="addASDF.action">Submit</a></li>
</s:if>
</ul>
</div>

<div id="end"><img src="end.png"></div>


<div id="search"><form>
<input type="button" value="Search">
<!--OnClick="Circle_calc(this.form);"-->
<input type="text" name="search">
<a href="advanced.action">Advanced</a>
</form>
</div>

<div id="options">
<s:if test="#session.login == 'true'">
    Welcome, <s:property value="#session.username"/>.  <a href="logout.action">Log Out</a>
</s:if>
<s:else>
    <a href="login.action">Log In</a>
</s:else>
</div>

<s:bean name="edu.upenn.yas.ASDF"/>
<div id="main">

<h1>
<!-- title --><s:property value="title"/>
</h1>
<!-- url --><s:property value="url"/>
<br/><br/>
<!-- content --><s:property value="content"/>
<br/>
<i>by 
<!-- username --><s:property value="username"/>
</i>

<h2>Score: <!-- score --><s:property value="score"/> </h2>

<b><a href="vote.action">Vote!</a><br/><br/>
<a href="comment.action">Comment!</a><br/><br/>

<h3>Comments:</h4>

<!-- Comments -->

<s:iterator value="comments">
<b><s:property value="username"/></b><br/>
<s:property value="body"/><br/><br/>
</s:iterator>

</div>

</body>
</html>
